<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
    <meta http-equiv="X-UA-Compatible" content="IE=9"/>
    <link rel="stylesheet" href="../../../lib/layui/css/layui.css">
    <link rel="stylesheet" href="../../static/css/common.css">
    <link rel="stylesheet" href="../../static/css/settings.css">
    <title>转换器设置</title>
</head>
<body>
<!--头部-->
<!--<header class="tophead" id="headerWrap"></header>-->
<!--主体-->
<div class="mainbody">
    <h3>转换器设置</h3>
    <!--表格-->
    <div class="tables">
        <table lay-filter="dataTable" class="settingTable" lay-data="{id: 'data-table'}"></table>
    </div>
</div>
<!--新增按钮-->
<script type="text/html" id="toolbarTrough">
    <div class="layui-btn-container">
        <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="add">新增</button>
    </div>
</script>
<!--行操作-->
<script type="text/html" id="rowOperate">
    <div class=" layui-btn-group">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    </div>
</script>
<!--行新增弹窗-->
<script type="text/html" id="rowAdd">
    <form class="layui-form add" lay-filter="rowAddForm" action="#">
        <div class="infowrap">
            <input type="hidden" class="layui-input" name="converterId" value="0" readonly>
            <div class="layui-form-item">
                <label class="layui-form-label">转换器地址</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="converterAddr">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">转换器命令</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="command">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">启用</label>
                <div class="layui-input-inline">
                    <input type="checkbox" class="layui-input" name="inUse" value="1" lay-skin="switch" checked>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="fr">
                    <button class="layui-btn layui-btn-sm" lay-submit lay-filter="rowAddForm">确定</button>
                    <button type="cancel" class="layui-btn layui-btn-sm layui-btn-primary add">取消</button>
                </div>
            </div>
        </div>
    </form>
</script>

<!--行编辑弹窗-->
<script type="text/html" id="rowEdit">
    <form class="layui-form edit" lay-filter="rowEditForm" action="#">
        <div class="infowrap">
            <input type="hidden" class="layui-input" name="converterId" value="0" readonly>
            <div class="layui-form-item">
                <label class="layui-form-label">转换器地址</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="converterAddr">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">转换器命令</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" name="command">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">启用</label>
                <div class="layui-input-inline">
                    <input type="checkbox" class="layui-input" name="inUse" value="1" lay-skin="switch" checked>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="fr">
                    <button class="layui-btn layui-btn-sm" lay-submit lay-filter="rowEditForm">确定</button>
                    <button type="cancel" class="layui-btn layui-btn-sm layui-btn-primary">取消</button>
                </div>
            </div>
        </div>
    </form>
</script>

</body>
</html>
<!--区域模板-->
<script src="../../../lib/layui/layui.js"></script>
<script src="../../static/js/common.js"></script>
<script src="../../static/js/file/converter-setting.js"></script>
